﻿using System.ComponentModel.DataAnnotations;

namespace ITTestingSystem.Domain.Entities
{
    /// <summary>
    /// Specifies the authentication details for the user
    /// </summary>
    /// 
    public class AuthenticationsDetail
    {
        /// <summary>
        /// Returns the primary key for the entity in the database table
        /// </summary>
        /// 
        [Key]
        public int Id { get; set; }

        /// <summary>
        /// Returns the user's login
        /// </summary>
        /// 
        [Required]
        public string Login { get; set; }

        /// <summary>
        /// Returns the user's password hash
        /// </summary>
        /// 
        [Required]
        public string PasswordHash { get; set; }

        /// <summary>
        /// Determines whether the registration has been confirmed
        /// </summary>
        /// 
        [Required]
        public bool EmailConfirmed { get; set; }




        /// <summary>
        /// Returns the user which uses this entry
        /// </summary>
        /// 
        [Required]
        public virtual User User { get; set; }
    }
}
